<?php
	$array = array(
	"1byn.jpg",
	"2byn.jpg",
	"3byn.jpg",
	"4byn.jpg",
	"5byn.jpg",
	"6byn.jpg",
	"7byn.jpg",
	"8byn.jpg",
	"10byn.jpg",
	"11byn.jpg",
	"12byn.jpg",
	"13byn.jpg"
	);
	$gnav = "";
	$gout = "";
	$cnt = 1;
	foreach ($array as $img) {
		$gnav .= "<a rel=\"img$cnt\" href=\"javascript:;\"><img src=\"./galeria/".$img."\" /></a>";
		$gout .= "<img id=\"img$cnt\" src=\"./galeria/".$img."\" />";
		$cnt++;  
	}
?>
<div id="gallery" class="hojas">
	<div id="gallery_nav" align="center">
		<?php echo $gnav; ?>
	</div>
 
	<div id="gallery_output">
		<?php echo $gout; ?>
	</div>
 
	<div class="clear"></div>
</div>